package com.freedom.auth.service.impl;

import com.freedom.auth.domain.Permission;
import com.freedom.auth.mapper.PermissionMapper;
import com.freedom.auth.service.IPermissionService;
import com.freedom.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author freedom
 * @since 2023-10-13
 */
@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements IPermissionService {

    @Autowired
    private PermissionMapper mapper;

    @Override
    public void clear () {
        mapper.clear();
    }

    @Override
    public List<String> getUserSnById ( Long id ) {
        return mapper.getUserSnById(id);
    }

}
